package com.syh.jn.scm.dto.upstream.base.logistics.logisticsTruck;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 物流车型mto
 */
@Data
public class UpLogisticsTruckMto implements Serializable {
  /**
   * id
   */
  @NotNull(message = "id不能为空")
  private Long id;
  /**
   * 物流公司id
   */
  @NotNull(message = "物流公司id不能为空")
  private Long logisticsId;
  /**
   * 货车类型: 1小型货车,2中型货车,3大型货车
   */
  @NotNull(message = "货车类型不能为空")
  private Short truckType;
  /**
   * 起步价(元)
   */
  @DecimalMin("0")
  private BigDecimal startingPrice;
  /**
   * 每公里价格
   */
  @DecimalMin("0")
  private BigDecimal perKilometrePrice;
  /**
   * 是否冷链车:-1否,1是
   */
  @NotNull(message = "是否冷链车不能为空")
  private Short isColdChain;
  /**
   * 期初应收总额
   */
  private BigDecimal beginReceiveTotalAmount;
  /**
   * 期初应付总额
   */
  private BigDecimal beginPaymentTotalAmount;
}
